import request from '@/utils/request'

// 查询住户确定列表
export function listResidentsqr(query) {
  return request({
    url: '/residentsqr/residentsqr/findPage',
    method: 'post',
    params: query
  })
}


// 查询住户类型列表
export function listResidentsTypes() {
  return request({
    url: '/residentsqr/residentsqr/findResidentTypes',
    method: 'get'
  })
}

//查询证件类型列表、
export function listDocumentTypes() {
  return request({
    url: '/residentsqr/residentsqr/findDocumentTypes',
    method: 'get'
  })
}


// 详情和审核弹框
export function getResidentsqr(id) {
  return request({
    url: '/residentsqr/residentsqr/getById/' + id,
    method: 'get'
  })
}


// 修改住户确定
export function updateResidentsqr(data) {
  return request({
    url: '/residentsqr/residentsqr/updateresidentsqr',
    method: 'post',
    params: data
  })
}

// 新增住户确定
export function addResidentsqr(data) {
  return request({
    url: '/residentsqr/residentsqr',
    method: 'post',
    data: data
  })
}



// 删除住户确定
export function delResidentsqr(id) {
  return request({
    url: '/residentsqr/residentsqr/' + id,
    method: 'delete'
  })
}


